Winter 2026 Day 3
glibc?syscall() wrapper
syscall() exist?What isn’t clear?
Comments? Thoughts?
int count = 99;int sum[10];What isn’t clear?
Comments? Thoughts?
What isn’t clear?
Comments? Thoughts?
fork() creates a new child process
init process is ancestor of all processes
pstree in a terminal to seeexec() makes a process execute a given executable (effectively replaces the process)exit() terminates a processwait() causes a parent to block until child terminatesfork()?exec() to change its memory image to a new programfork() then exec())?
exec()Some operating systems do not allow child to exist if its parent has terminated. If a process terminates, then all its children must also be terminated
The parent process may wait for termination of a child process by using the wait() system call. The call returns status information and the pid of the terminated process
wait()), and process completes, process is a zombie
wait(), even if the child exits firstwait(), process is an orphan
init benevolently adopts orphansWhat isn’t clear?
Comments? Thoughts?